package com.tiny.cqzcp.service.klb.impl;

import com.tiny.cqzcp.dao.klb.KlbThreeDao;
import com.tiny.cqzcp.dao.klb.KlbThreeInfoDao;
import com.tiny.cqzcp.pojo.klb.KlbThree;
import com.tiny.cqzcp.pojo.klb.KlbThreeInfo;
import com.tiny.cqzcp.service.klb.KlbThreeService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("KlbThreeService")
public class KlbThreeServiceImpl implements KlbThreeService {
	
	private KlbThreeDao KlbThreeDao;
	private KlbThreeInfoDao KlbThreeInfoDao;

	@Autowired
	public KlbThreeServiceImpl(KlbThreeDao KlbThreeDao,KlbThreeInfoDao KlbThreeInfoDao){
		this.KlbThreeDao = KlbThreeDao;
		this.KlbThreeInfoDao = KlbThreeInfoDao;
	}

	@Override
	public int createThreeCombinationRecord() {
		return 0;
	}

	@Override
	public KlbThree queryThreeRecordByNumbers(String numbers) {
		return null;
	}

	@Override
	public List<KlbThree> queryThreeAllRecords() {
		return KlbThreeDao.selectAll();
	}

	@Override
	public int updateRecord(KlbThree record) {
		return KlbThreeDao.update(record);
	}

	@Override
	public List<KlbThree> queryThreeByLimit(Integer start, Integer end) {
		return KlbThreeDao.selectByLimit(start, end);
	}

	@Override
	public int insertInfoRecord(KlbThreeInfo record) {
		return KlbThreeInfoDao.insert(record);
	}

	@Override
	public void batchUpdate(List<KlbThree> nts) {
		KlbThreeDao.batchUpdate(nts);
	}

	@Override
	public void batchInsertInfo(List<KlbThreeInfo> ntis) {
		KlbThreeInfoDao.batchInsertInfo(ntis);
		
	}

	@Override
	public List<KlbThree> queryThreeByTerm(String term) {
		return KlbThreeDao.selectByTerm(term);
	}

}
